<%@ page language="java" pageEncoding="UTF-8" contentType="text/html;charset=UTF-8" isErrorPage="true"%>
<%@ include file="taglibs.jsp" %>
<html>
	<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>异常信息</title>
	</head>
	<%
	Throwable ex = null;
	if(exception!=null)
		ex = exception;
	if (request.getAttribute("javax.servlet.error.exception") != null)
		ex = (Exception)request.getAttribute("javax.servlet.error.exception");
	%>
	<body>
		<div id="content">
				<div>
					<img src="${cdnctx}/images/ico_error.gif" width="49" height="50" border="0" />
					<h3>
						系统运行异常:<br>
						<%
							if(ex!=null)
								out.println(ex.getMessage());
						%>
					</h3>
				</div>
				<div>
					<button onclick="history.back(-1);">返回</button>
				</div>
				<div><a href="#" onclick="$('detail_error_msg').toggle();">查看异常详情</a></div>
				<div id="detail_error_msg" style="display: none">
					<% if (ex != null) { %>
					<pre>
						<% ex.printStackTrace(new java.io.PrintWriter(out)); %>
					</pre>
					<% } %>
				</div>
			</div>
	</body>
</html>